package cloud.daodao.storm.common.security.model.rsa;

import cloud.daodao.storm.common.serialize.Serializer;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author DaoDao
 */
@Schema(title = "RsaPrivateKeyParam", description = "RSA 私钥")
@Data
public class RsaPrivateKeyParam implements Serializer {

    @Schema(title = "privateKey", description = "私钥", example = "")
    @NotEmpty
    @Size(min = 1, max = 2048)
    private String privateKey;

    @Schema(title = "password", description = "密码", example = "1")
    @Size(min = 1, max = 64)
    private String password;

}
